<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){alert(data);
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
  </script>
   <div class="h"><a href="{:U('index')}" class="btn btn-info"><i class="glyphicon glyphicon-circle-arrow-left"></i> 返回列表</a> </div> <!--| 添加[{$parentTitle}]的子相册</gt></h1>-->
    <form class="checkoutform" action="{:U('insert')}" method="post">
    <input type="hidden" value="{$pid}" name="pid">
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <div class="form-group">
      <label class="col-sm-2 control-label">相册名称</label>
      <div class="col-sm-10">
         <input class="form-control" datatype="*"  value="{$info.title}" name="title" type="text" >
      </div>
   </div>
       </tr>
       <if condition="isset($_SESSION[C('ADMIN_AUTH_KEY')])">
       <tr>
         <label class="col-sm-2 control-label">系统相册</label>
        <label class="checkbox-inline"><input name="status" type="checkbox" <eq name="status" value="1">checked="ckecked"</eq> value="1" /></label>
       </tr>
       </if>
      
      </if>
        <div class="pages"><button type="submit" class="btn btn-success">提交</button></div>
        </tr>
      </table>
    </form>
  </div> 
  <div class="clear"></div>
</div>
</body></html>